<?php
class pk_featured extends BaseModel implements Retrievable {

	var $title;
	var $name;
	var $info;
	var $photo;
	var $sport;
	 	
    public function pk_featured($values) {
        parent::__construct($values);
    }

    public function validate() {
        $errors = Array();
		return (count($errors) === 0 ? true : $errors);
    }

    public static function get($id, $primaryKey='id') {
        return parent::get($id, __CLASS__, $primaryKey);
    }
    
    public static function getAll($searchArray=Array(), $sortArray=Array()) {
        return parent::getAll($searchArray, $sortArray, __CLASS__);
    }
    
    public static function getFeatured($sport) {
    	return pk_featured::get($sport, "sport");
    }
    
}
?>